

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>NYS Laws API &mdash; Open Legislation 2.0-alpha documentation</title>
  

  
  
  
  

  

  
  
    

  

  
  
    <link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
  

  

  
        <link rel="index" title="Index"
              href="genindex.html"/>
        <link rel="search" title="Search" href="search.html"/>
    <link rel="top" title="Open Legislation 2.0-alpha documentation" href="index.html"/>
        <link rel="next" title="Senate Floor Transcripts API" href="transcripts_floor.html"/>
        <link rel="prev" title="Senate Committee API" href="committees.html"/> 

  
  <script src="_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav" role="document">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="reference.html" class="icon icon-home"> Open Legislation
          

          
          </a>

          
            
            
              <div class="version">
                2.0
              </div>
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="index.html"><strong>Open Legislation v2.0 API Docs</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="bills.html"><strong>Bills and Resolutions API</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="calendars.html"><strong>Senate Calendar API</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="agendas.html"><strong>Senate Agenda API</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="committees.html"><strong>Senate Committee API</strong></a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#"><strong>NYS Laws API</strong></a><ul>
<li class="toctree-l2"><a class="reference internal" href="#get-a-list-of-law-ids">Get a list of law ids</a></li>
<li class="toctree-l2"><a class="reference internal" href="#get-the-law-structure">Get the law structure</a></li>
<li class="toctree-l2"><a class="reference internal" href="#get-a-law-sub-document">Get a law sub document</a></li>
<li class="toctree-l2"><a class="reference internal" href="#search-for-law-documents">Search for law documents</a></li>
<li class="toctree-l2"><a class="reference internal" href="#get-law-document-updates">Get law document updates</a></li>
<li class="toctree-l2"><a class="reference internal" href="#get-law-tree-updates">Get law tree updates</a></li>
<li class="toctree-l2"><a class="reference internal" href="#get-repealed-laws">Get repealed laws</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="transcripts_floor.html"><strong>Senate Floor Transcripts API</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="transcripts_ph.html"><strong>Public Hearing Transcripts API</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="members.html"><strong>Senate Members API</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="agg_updates.html"><strong>Aggregate Updates API</strong></a></li>
<li class="toctree-l1"><a class="reference internal" href="search_api.html"><strong>Search APIs</strong></a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" role="navigation" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="reference.html">Open Legislation</a>
        
      </nav>


      
      <div class="wy-nav-content">
        <div class="rst-content">
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="reference.html">Docs</a> &raquo;</li>
        
      <li><strong>NYS Laws API</strong></li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
            <a href="_sources/laws.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="nys-laws-api">
<h1><strong>NYS Laws API</strong><a class="headerlink" href="#nys-laws-api" title="Permalink to this headline">¶</a></h1>
<p>In order to utilize the Laws API we&#8217;ll go over some quick terminology:</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Law Id:</th><td class="field-body">A three letter code that identifies the law, e.g. EDN for Education Law.</td>
</tr>
<tr class="field-even field"><th class="field-name">Document Id:</th><td class="field-body">A string that identifies a particular document within a body of law. Contains the three letter law id
so it can uniquely identify a document.</td>
</tr>
<tr class="field-odd field"><th class="field-name">Location Id:</th><td class="field-body">This is simply the document id without the three letter law id prefix.</td>
</tr>
<tr class="field-even field"><th class="field-name">Published Date:</th><td class="field-body">Since the nature of laws are fairly temporal we keep track of changes to the laws using the published date.
It&#8217;s possible to retrieve law documents roughly as they were represented during any week since October 2014.</td>
</tr>
</tbody>
</table>
<hr class="docutils" />
<div class="section" id="get-a-list-of-law-ids">
<h2>Get a list of law ids<a class="headerlink" href="#get-a-list-of-law-ids" title="Permalink to this headline">¶</a></h2>
<p><strong>Usage</strong></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">(</span><span class="n">GET</span><span class="p">)</span> <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span>
</pre></div>
</div>
<p><strong>Optional Params</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="13%" />
<col width="23%" />
<col width="64%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Values</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>limit</td>
<td>1 - 1000</td>
<td>Number of results to return</td>
</tr>
<tr class="row-odd"><td>offset</td>
<td>&gt;= 1</td>
<td>Result number to start from</td>
</tr>
</tbody>
</table>
<p><strong>Response</strong></p>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="s2">&quot;success&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="s2">&quot;message&quot;</span><span class="o">:</span> <span class="s2">&quot;Listing of consolidated and unconsolidated NYS Laws&quot;</span><span class="p">,</span>
    <span class="s2">&quot;responseType&quot;</span><span class="o">:</span> <span class="s2">&quot;law-info list&quot;</span><span class="p">,</span>
    <span class="s2">&quot;total&quot;</span><span class="o">:</span> <span class="mi">134</span><span class="p">,</span>
    <span class="s2">&quot;offsetStart&quot;</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span>
    <span class="s2">&quot;offsetEnd&quot;</span><span class="o">:</span> <span class="mi">134</span><span class="p">,</span>
    <span class="s2">&quot;limit&quot;</span><span class="o">:</span> <span class="mi">0</span><span class="p">,</span>
    <span class="s2">&quot;result&quot;</span><span class="o">:</span> <span class="p">{</span>
        <span class="s2">&quot;items&quot;</span><span class="o">:</span> <span class="p">[</span>
            <span class="p">{</span>
                <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;ABC&quot;</span><span class="p">,</span>
                <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;Alcoholic Beverage Control&quot;</span><span class="p">,</span>
                <span class="s2">&quot;lawType&quot;</span><span class="o">:</span> <span class="s2">&quot;CONSOLIDATED&quot;</span><span class="p">,</span>
                <span class="s2">&quot;chapter&quot;</span><span class="o">:</span> <span class="s2">&quot;3-B&quot;</span>
            <span class="p">},</span>
            <span class="p">{</span>
                <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;ABP&quot;</span><span class="p">,</span>
                <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;Abandoned Property&quot;</span><span class="p">,</span>
                <span class="s2">&quot;lawType&quot;</span><span class="o">:</span> <span class="s2">&quot;CONSOLIDATED&quot;</span><span class="p">,</span>
                <span class="s2">&quot;chapter&quot;</span><span class="o">:</span> <span class="s2">&quot;1&quot;</span>
            <span class="p">},</span>
    <span class="p">(</span><span class="nx">truncated</span><span class="p">)</span>
</pre></div>
</div>
<p>The <em>lawId</em> in the response is the three letter id for the law.</p>
</div>
<div class="section" id="get-the-law-structure">
<h2>Get the law structure<a class="headerlink" href="#get-the-law-structure" title="Permalink to this headline">¶</a></h2>
<p>Laws are represented as a collection of sub documents, each of which is structured within a hierarchy.
The following call will provide the structure of the law.</p>
<p><strong>Usage</strong></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">(</span><span class="n">GET</span><span class="p">)</span> <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="p">{</span><span class="n">lawId</span><span class="p">}</span>
</pre></div>
</div>
<p><strong>Optional Params</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="12%" />
<col width="22%" />
<col width="67%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Values</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>date</td>
<td>ISO date</td>
<td>Fetch law structure as it appeared prior to or on this date.</td>
</tr>
<tr class="row-odd"><td>full</td>
<td>boolean</td>
<td>If set to true, all the law text will also be returned.</td>
</tr>
</tbody>
</table>
<p><strong>Examples</strong></p>
<div class="highlight-default"><div class="highlight"><pre><span></span>/api/3/laws/ABC                  // Get latest law structure for ABC law
/api/3/laws/TAX?date=2015-01-01  // Get law structure for TAX law as it appeared on or before 01/01/2015
/api/3/laws/EDN?full=true        // Get latest law structure for EDN law as well as the text body of the law
</pre></div>
</div>
<p><strong>Response</strong></p>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="c1">// /api/3/laws/RPT</span>
<span class="p">{</span>
    <span class="s2">&quot;success&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="s2">&quot;message&quot;</span><span class="o">:</span> <span class="s2">&quot;The document structure for RPT law&quot;</span><span class="p">,</span>
    <span class="s2">&quot;responseType&quot;</span><span class="o">:</span> <span class="s2">&quot;law-tree&quot;</span><span class="p">,</span>
    <span class="s2">&quot;result&quot;</span><span class="o">:</span> <span class="p">{</span>
    <span class="s2">&quot;lawVersion&quot;</span><span class="o">:</span> <span class="p">{</span>
        <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;RPT&quot;</span><span class="p">,</span>                                <span class="c1">// Three letter law id</span>
        <span class="s2">&quot;activeDate&quot;</span><span class="o">:</span> <span class="s2">&quot;2015-01-02&quot;</span>                     <span class="c1">// Date on which this law content was up to date</span>
    <span class="p">},</span>
    <span class="s2">&quot;info&quot;</span><span class="o">:</span> <span class="p">{</span>
        <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;RPT&quot;</span><span class="p">,</span>
        <span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;Real Property Tax&quot;</span><span class="p">,</span>                   <span class="c1">// Name of the law</span>
        <span class="s2">&quot;lawType&quot;</span><span class="o">:</span> <span class="s2">&quot;CONSOLIDATED&quot;</span><span class="p">,</span>                     <span class="c1">// One of CONSOLIDATED, UNCONSOLIDATED, COURT_ACTS, RULES, MISC</span>
        <span class="s2">&quot;chapter&quot;</span><span class="o">:</span> <span class="s2">&quot;50-A&quot;</span>                              <span class="c1">// Chapter of law</span>
    <span class="p">},</span>
    <span class="s2">&quot;documents&quot;</span><span class="o">:</span> <span class="p">{</span>                                     <span class="c1">// This is a repeating document structure</span>
        <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;RPT&quot;</span><span class="p">,</span>
        <span class="s2">&quot;locationId&quot;</span><span class="o">:</span> <span class="s2">&quot;-CH50-A&quot;</span><span class="p">,</span>                       <span class="c1">// The location id identifes this sub document within this law</span>
        <span class="s2">&quot;title&quot;</span><span class="o">:</span> <span class="s2">&quot;Real Property Tax&quot;</span><span class="p">,</span>                  <span class="c1">// Title of this sub document if available.</span>
        <span class="s2">&quot;docType&quot;</span><span class="o">:</span> <span class="s2">&quot;CHAPTER&quot;</span><span class="p">,</span>
        <span class="s2">&quot;docLevelId&quot;</span><span class="o">:</span> <span class="s2">&quot;50-A&quot;</span><span class="p">,</span>                          <span class="c1">// The doc level id identifies the sub document within the current</span>
                                                       <span class="c1">// level in the hierarchy. For example if &#39;docType&#39; is ARTICLE</span>
                                                       <span class="c1">// and docLevelId is 1, it means this is Article 1.</span>

        <span class="s2">&quot;activeDate&quot;</span><span class="o">:</span> <span class="s2">&quot;2014-09-22&quot;</span><span class="p">,</span>                    <span class="c1">// Date this particular document was updated</span>
        <span class="s2">&quot;sequenceNo&quot;</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span>                               <span class="c1">// Preserves ordering of sub documents</span>
        <span class="s2">&quot;repealedDate&quot;</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>                          <span class="c1">// Date this document was repealed (if applicable)</span>
        <span class="s2">&quot;repealed&quot;</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>                             <span class="c1">// This will be true if the document was repealed,</span>
                                                       <span class="c1">// &#39;repealedDate&#39; will be set with the date.</span>
        <span class="s2">&quot;text&quot;</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>                                  <span class="c1">// Text of this document (only set when ?full=true)</span>
        <span class="s2">&quot;documents&quot;</span><span class="o">:</span> <span class="p">{</span>                                 <span class="c1">// Contains the sub documents of this document</span>
            <span class="s2">&quot;items&quot;</span><span class="o">:</span> <span class="p">[</span>                                 <span class="c1">// It&#39;s a recursive structure</span>
            <span class="p">{</span>
                <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;RPT&quot;</span><span class="p">,</span>
                <span class="s2">&quot;locationId&quot;</span><span class="o">:</span> <span class="s2">&quot;A1&quot;</span><span class="p">,</span>
                <span class="s2">&quot;title&quot;</span><span class="o">:</span> <span class="s2">&quot;SHORT TITLE; DEFINITIONS&quot;</span><span class="p">,</span>
                <span class="s2">&quot;docType&quot;</span><span class="o">:</span> <span class="s2">&quot;ARTICLE&quot;</span><span class="p">,</span>
                <span class="s2">&quot;docLevelId&quot;</span><span class="o">:</span> <span class="s2">&quot;1&quot;</span><span class="p">,</span>
                <span class="s2">&quot;activeDate&quot;</span><span class="o">:</span> <span class="s2">&quot;2014-09-22&quot;</span><span class="p">,</span>
                <span class="s2">&quot;sequenceNo&quot;</span><span class="o">:</span> <span class="mi">2</span><span class="p">,</span>
                <span class="s2">&quot;repealedDate&quot;</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
                <span class="s2">&quot;text&quot;</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
                <span class="s2">&quot;documents&quot;</span><span class="o">:</span> <span class="p">{</span>
                    <span class="s2">&quot;items&quot;</span><span class="o">:</span> <span class="p">[</span>
                        <span class="p">{</span>
                            <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;RPT&quot;</span><span class="p">,</span>
                            <span class="s2">&quot;locationId&quot;</span><span class="o">:</span> <span class="s2">&quot;100&quot;</span><span class="p">,</span>
                            <span class="s2">&quot;title&quot;</span><span class="o">:</span> <span class="s2">&quot;Short title&quot;</span><span class="p">,</span>
                            <span class="s2">&quot;docType&quot;</span><span class="o">:</span> <span class="s2">&quot;SECTION&quot;</span><span class="p">,</span>
                            <span class="s2">&quot;docLevelId&quot;</span><span class="o">:</span> <span class="s2">&quot;100&quot;</span><span class="p">,</span>
                            <span class="s2">&quot;activeDate&quot;</span><span class="o">:</span> <span class="s2">&quot;2014-09-22&quot;</span><span class="p">,</span>
                            <span class="s2">&quot;sequenceNo&quot;</span><span class="o">:</span> <span class="mi">3</span><span class="p">,</span>
                            <span class="s2">&quot;repealedDate&quot;</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
                            <span class="s2">&quot;text&quot;</span><span class="o">:</span> <span class="kc">null</span><span class="p">,</span>
                            <span class="s2">&quot;documents&quot;</span><span class="o">:</span> <span class="p">{</span>              <span class="c1">// Note there are no sub documents for this doc</span>
                                <span class="s2">&quot;items&quot;</span><span class="o">:</span> <span class="p">[],</span>
                                <span class="s2">&quot;size&quot;</span><span class="o">:</span> <span class="mi">0</span>
                            <span class="p">},</span>
                            <span class="s2">&quot;repealed&quot;</span><span class="o">:</span> <span class="kc">false</span>
                        <span class="p">},</span>
    <span class="p">(</span><span class="nx">truncated</span><span class="p">)</span>
</pre></div>
</div>
<p>When the request parameter <strong>full</strong> is set to true the &#8216;text&#8217; fields within all the sub-documents will contain
the text body. Note that response can be rather large (several MB) for certain laws so keep that in mind.</p>
<p>If you want to retrieve a specific law document use the following API call:</p>
</div>
<div class="section" id="get-a-law-sub-document">
<h2>Get a law sub document<a class="headerlink" href="#get-a-law-sub-document" title="Permalink to this headline">¶</a></h2>
<p><strong>Usage</strong></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">(</span><span class="n">GET</span><span class="p">)</span> <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="p">{</span><span class="n">lawId</span><span class="p">}</span><span class="o">/</span><span class="p">{</span><span class="n">locationId</span><span class="p">}</span>
</pre></div>
</div>
<p>The lawId once again is the three letter code (e.g. EDN, TAX) and locationId is the identifier for the sub document.
You can discover the locationId when you make an API request for the law structure (see above section). See the
&#8216;locationId&#8217; field for that response.</p>
<p><strong>Examples</strong></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">TAX</span><span class="o">/</span><span class="mi">8</span><span class="o">/</span>     <span class="o">//</span> <span class="n">Get</span> <span class="n">section</span> <span class="mi">8</span> <span class="n">of</span> <span class="n">Tax</span> <span class="n">law</span>
<span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">EDN</span><span class="o">/</span><span class="n">A2</span><span class="o">/</span>    <span class="o">//</span> <span class="n">Get</span> <span class="n">article</span> <span class="mi">2</span> <span class="n">of</span> <span class="n">Education</span> <span class="n">law</span>
</pre></div>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">A trailing slash is important for this API call because the locationId may have periods which would otherwise be interpreted as an extension of sorts. When in doubt, try adding the trailing slash.</p>
</div>
<p><strong>Response</strong></p>
<p>The response here is straight-forward.</p>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="s2">&quot;success&quot;</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="s2">&quot;message&quot;</span><span class="o">:</span> <span class="s2">&quot;Law document for location A2 in EDN law &quot;</span><span class="p">,</span>
    <span class="s2">&quot;responseType&quot;</span><span class="o">:</span> <span class="s2">&quot;law-document&quot;</span><span class="p">,</span>
    <span class="s2">&quot;result&quot;</span><span class="o">:</span> <span class="p">{</span>
        <span class="s2">&quot;lawId&quot;</span><span class="o">:</span> <span class="s2">&quot;EDN&quot;</span><span class="p">,</span>
        <span class="s2">&quot;locationId&quot;</span><span class="o">:</span> <span class="s2">&quot;A2&quot;</span><span class="p">,</span>
        <span class="s2">&quot;title&quot;</span><span class="o">:</span> <span class="s2">&quot;DIGNITY FOR ALL STUDENTS&quot;</span><span class="p">,</span>
        <span class="s2">&quot;docType&quot;</span><span class="o">:</span> <span class="s2">&quot;ARTICLE&quot;</span><span class="p">,</span>
        <span class="s2">&quot;docLevelId&quot;</span><span class="o">:</span> <span class="s2">&quot;2&quot;</span><span class="p">,</span>
        <span class="s2">&quot;activeDate&quot;</span><span class="o">:</span> <span class="s2">&quot;2014-09-22&quot;</span><span class="p">,</span>
        <span class="s2">&quot;text&quot;</span><span class="o">:</span> <span class="s2">&quot;  ARTICLE 2 (text truncated for brevity)&quot;</span>  <span class="c1">// The text body of the law will be here</span>
    <span class="p">}</span>
<span class="p">}</span>
</pre></div>
</div>
<p>If the law document was not found you will receive an error response</p>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="s2">&quot;success&quot;</span><span class="o">:</span> <span class="kc">false</span><span class="p">,</span>
    <span class="s2">&quot;message&quot;</span><span class="o">:</span> <span class="s2">&quot;The requested law document was not found&quot;</span><span class="p">,</span>
    <span class="s2">&quot;responseType&quot;</span><span class="o">:</span> <span class="s2">&quot;error&quot;</span><span class="p">,</span>
    <span class="s2">&quot;errorCode&quot;</span><span class="o">:</span> <span class="mi">21</span><span class="p">,</span>
    <span class="s2">&quot;errorData&quot;</span><span class="o">:</span> <span class="p">{</span>
        <span class="s2">&quot;lawDocId&quot;</span><span class="o">:</span> <span class="s2">&quot;EDNA22&quot;</span><span class="p">,</span>
        <span class="s2">&quot;endDate&quot;</span><span class="o">:</span> <span class="s2">&quot;2015-01-09&quot;</span>
    <span class="p">},</span>
    <span class="s2">&quot;errorDataType&quot;</span><span class="o">:</span> <span class="s2">&quot;law-doc-query&quot;</span>
<span class="p">}</span>
</pre></div>
</div>
</div>
<div class="section" id="search-for-law-documents">
<h2>Search for law documents<a class="headerlink" href="#search-for-law-documents" title="Permalink to this headline">¶</a></h2>
<p><strong>Usage</strong></p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="p">(</span><span class="n">GET</span><span class="p">)</span> <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">search</span>           <span class="o">//</span> <span class="n">Search</span> <span class="n">across</span> <span class="nb">all</span> <span class="n">law</span> <span class="n">volumes</span>
<span class="p">(</span><span class="n">GET</span><span class="p">)</span> <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="p">{</span><span class="n">lawId</span><span class="p">}</span><span class="o">/</span><span class="n">search</span>   <span class="o">//</span> <span class="n">Search</span> <span class="n">within</span> <span class="n">a</span> <span class="n">specific</span> <span class="n">law</span> <span class="n">volume</span>
</pre></div>
</div>
<p><strong>Required Params</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="12%" />
<col width="22%" />
<col width="67%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Values</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>term</td>
<td>string</td>
<td>The full text search term.</td>
</tr>
</tbody>
</table>
<p><strong>Optional Params</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="12%" />
<col width="22%" />
<col width="67%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Values</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>sort</td>
<td>string</td>
<td>Sort using any field from the result object, e.g. lawId:ASC</td>
</tr>
<tr class="row-odd"><td>limit</td>
<td>1 - 1000</td>
<td>Number of results to return (high limits take longer)</td>
</tr>
<tr class="row-even"><td>offset</td>
<td>&gt;= 1</td>
<td>Result number to start from</td>
</tr>
</tbody>
</table>
<p><strong>Examples</strong></p>
<div class="highlight-default"><div class="highlight"><pre><span></span>/api/3/laws/search?term=chickens                            // Search all law volumes for the word &#39;chickens&#39;
/api/3/laws/EDN/search?term=teacher&amp;sort=activeDate:desc    // Search education law for documents containing &#39;teacher&#39;
                                                            // sorted by the activeDate in descending order.
</pre></div>
</div>
<p><strong>Response</strong></p>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;success&quot;</span> <span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
  <span class="s2">&quot;message&quot;</span> <span class="o">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
  <span class="s2">&quot;responseType&quot;</span> <span class="o">:</span> <span class="s2">&quot;search-results list&quot;</span><span class="p">,</span>
  <span class="s2">&quot;total&quot;</span> <span class="o">:</span> <span class="mi">178</span><span class="p">,</span>                              <span class="c1">// Total number of results</span>
  <span class="s2">&quot;offsetStart&quot;</span> <span class="o">:</span> <span class="mi">1</span><span class="p">,</span>                          <span class="c1">// Pagination</span>
  <span class="s2">&quot;offsetEnd&quot;</span> <span class="o">:</span> <span class="mi">25</span><span class="p">,</span>
  <span class="s2">&quot;limit&quot;</span> <span class="o">:</span> <span class="mi">25</span><span class="p">,</span>
  <span class="s2">&quot;result&quot;</span> <span class="o">:</span> <span class="p">{</span>
    <span class="s2">&quot;items&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="p">{</span>
      <span class="s2">&quot;result&quot;</span> <span class="o">:</span> <span class="p">{</span>
        <span class="s2">&quot;lawId&quot;</span> <span class="o">:</span> <span class="s2">&quot;EDN&quot;</span><span class="p">,</span>
        <span class="s2">&quot;lawName&quot;</span> <span class="o">:</span> <span class="s2">&quot;Education&quot;</span><span class="p">,</span>
        <span class="s2">&quot;locationId&quot;</span> <span class="o">:</span> <span class="s2">&quot;3602&quot;</span><span class="p">,</span>
        <span class="s2">&quot;title&quot;</span> <span class="o">:</span> <span class="s2">&quot;Apportionment of public moneys to school districts employing eight or more teachers&quot;</span><span class="p">,</span>
        <span class="s2">&quot;docType&quot;</span> <span class="o">:</span> <span class="s2">&quot;SECTION&quot;</span><span class="p">,</span>
        <span class="s2">&quot;docLevelId&quot;</span> <span class="o">:</span> <span class="s2">&quot;3602&quot;</span><span class="p">,</span>
        <span class="s2">&quot;activeDate&quot;</span> <span class="o">:</span> <span class="s2">&quot;2014-12-26&quot;</span>
      <span class="p">},</span>
      <span class="s2">&quot;rank&quot;</span> <span class="o">:</span> <span class="mi">1</span><span class="p">,</span>                             <span class="c1">// Document score</span>
      <span class="s2">&quot;highlights&quot;</span> <span class="o">:</span> <span class="p">{</span>                        <span class="c1">// Highlights contain the snippets where the match occurred.</span>
        <span class="s2">&quot;text&quot;</span> <span class="o">:</span> <span class="p">[</span> <span class="s2">&quot; assistance of &lt;em&gt;teacher&lt;/em&gt; aides or consultation\\nwith appropriate personnel. When a committee on special&quot;</span><span class="p">,</span> <span class="s2">&quot; consultant &lt;em&gt;teacher&lt;/em&gt;\\nservices, in accordance with regulations of the commissioner adopted for\\nsuch&quot;</span><span class="p">,</span> <span class="s2">&quot; or indirect consultant &lt;em&gt;teacher&lt;/em&gt;\\nservices, in accordance with regulations of the commissioner adopted&quot;</span><span class="p">,</span> <span class="s2">&quot; under paragraph five of\\nsubdivision nineteen of this section;\\n  (11) &lt;em&gt;teacher&lt;/em&gt; support payments made&quot;</span><span class="p">,</span> <span class="s2">&quot;. Parent-&lt;em&gt;teacher&lt;/em&gt; conferences or workshops. Notwithstanding any other\\nprovision of this section to&quot;</span> <span class="p">]</span>
      <span class="p">}</span>
    <span class="p">},</span> <span class="p">....</span> <span class="p">(</span><span class="nx">more</span> <span class="nx">results</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="get-law-document-updates">
<h2>Get law document updates<a class="headerlink" href="#get-law-document-updates" title="Permalink to this headline">¶</a></h2>
<p>To identify which documents have been modified or added to a body of law, use the law updates API.</p>
<p>To detect updates to the structure of the law document tree, see <a class="reference internal" href="#get-law-tree-updates">Get law tree updates</a>.</p>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">Law updates are received in a batch update on a weekly basis, so updates that occur during the week will only be visible at the end of that week.</p>
</div>
<p><strong>Usage</strong></p>
<p>List of laws updated during the given date/time range</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span><span class="p">{</span><span class="n">fromDateTime</span><span class="p">}</span><span class="o">/</span><span class="p">{</span><span class="n">toDateTime</span><span class="p">}</span>
</pre></div>
</div>
<div class="admonition note">
<p class="first admonition-title">Note</p>
<p class="last">The fromDateTime and toDateTime should be formatted as the ISO Date Time format. For example December 10, 2014, 1:30:02 PM should be inputted as 2014-12-10T13:30:02. The fromDateTime and toDateTime range is exclusive.</p>
</div>
<p>All updates made on a specific body of law</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="p">{</span><span class="n">lawId</span><span class="p">}</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span>

<span class="n">e</span><span class="o">.</span><span class="n">g</span><span class="o">.</span> <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">ABC</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span>
     <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">VAT</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span>
</pre></div>
</div>
<p>All updates made on a specific body of law during a date/time range</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="p">{</span><span class="n">lawId</span><span class="p">}</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span><span class="p">{</span><span class="n">fromDateTime</span><span class="p">}</span><span class="o">/</span><span class="p">{</span><span class="n">toDateTime</span><span class="p">}</span>
</pre></div>
</div>
<p><strong>Optional Params</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="12%" />
<col width="25%" />
<col width="63%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Values</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>type</td>
<td>(processed|published)</td>
<td>The type of law update</td>
</tr>
<tr class="row-odd"><td>detail</td>
<td>boolean</td>
<td>Set to true for updates to individual law documents.</td>
</tr>
<tr class="row-even"><td>order</td>
<td>string (asc|desc)</td>
<td>Order the results by update date/time</td>
</tr>
<tr class="row-odd"><td>limit</td>
<td>1 - 1000</td>
<td>Number of results to return (high limits take longer)</td>
</tr>
<tr class="row-even"><td>offset</td>
<td>&gt;= 1</td>
<td>Result number to start from</td>
</tr>
</tbody>
</table>
<p><strong>Response</strong></p>
<p>Global law updates</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">e</span><span class="o">.</span><span class="n">g</span><span class="o">.</span> <span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span><span class="mi">2015</span><span class="o">-</span><span class="mi">09</span><span class="o">-</span><span class="mi">01</span><span class="n">T00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="o">/</span><span class="mi">2015</span><span class="o">-</span><span class="mi">10</span><span class="o">-</span><span class="mi">01</span><span class="n">T00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span>
</pre></div>
</div>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="nx">success</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="nx">message</span><span class="o">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
    <span class="nx">responseType</span><span class="o">:</span> <span class="s2">&quot;update-token list&quot;</span><span class="p">,</span>
    <span class="nx">total</span><span class="o">:</span> <span class="mi">33</span><span class="p">,</span>
    <span class="nx">offsetStart</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span>
    <span class="nx">offsetEnd</span><span class="o">:</span> <span class="mi">33</span><span class="p">,</span>
    <span class="nx">limit</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
    <span class="nx">result</span><span class="o">:</span> <span class="p">{</span>
    <span class="nx">items</span><span class="o">:</span> <span class="p">[</span>
        <span class="p">{</span>
            <span class="nx">id</span><span class="o">:</span> <span class="p">{</span>
                <span class="nx">lawId</span><span class="o">:</span> <span class="s2">&quot;RSS&quot;</span><span class="p">,</span>                <span class="c1">// Which body of law was updated</span>
                <span class="nx">activeDate</span><span class="o">:</span> <span class="s2">&quot;2015-08-07&quot;</span>     <span class="c1">// The active published date</span>
            <span class="p">},</span>
            <span class="nx">contentType</span><span class="o">:</span> <span class="s2">&quot;LAW&quot;</span><span class="p">,</span>
            <span class="nx">sourceId</span><span class="o">:</span> <span class="s2">&quot;20150807.UPDATE&quot;</span><span class="p">,</span>
            <span class="nx">sourceDateTime</span><span class="o">:</span> <span class="s2">&quot;2015-08-07T00:00&quot;</span><span class="p">,</span>   <span class="c1">// Date of the source data</span>
            <span class="nx">processedDateTime</span><span class="o">:</span> <span class="s2">&quot;2015-09-10T15:00:14.551822&quot;</span>  <span class="c1">// Date we processed this update</span>
        <span class="p">},</span>  <span class="p">(</span><span class="nx">truncated</span><span class="p">..)</span>
</pre></div>
</div>
<p>Detailed law doc updates</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>e.g. /api/3/laws/updates/2015-09-01T00:00:00/2015-10-01T00:00:00?detail=true
     /api/3/laws/ABC/updates/
</pre></div>
</div>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="nx">success</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="nx">message</span><span class="o">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
    <span class="nx">responseType</span><span class="o">:</span> <span class="s2">&quot;update-digest list&quot;</span><span class="p">,</span>
    <span class="nx">total</span><span class="o">:</span> <span class="mi">431</span><span class="p">,</span>
    <span class="nx">offsetStart</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span>
    <span class="nx">offsetEnd</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
    <span class="nx">limit</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
    <span class="nx">result</span><span class="o">:</span> <span class="p">{</span>
    <span class="nx">items</span><span class="o">:</span> <span class="p">[</span>
        <span class="p">{</span>
            <span class="nx">id</span><span class="o">:</span> <span class="p">{</span>
                <span class="nx">lawId</span><span class="o">:</span> <span class="s2">&quot;ABC&quot;</span><span class="p">,</span>
                <span class="nx">locationId</span><span class="o">:</span> <span class="s2">&quot;120&quot;</span><span class="p">,</span>                        <span class="c1">// Location id of doc that was updated</span>
                <span class="nx">publishedDate</span><span class="o">:</span> <span class="s2">&quot;2014-09-22&quot;</span>               <span class="c1">// Published date of this doc</span>
            <span class="p">},</span>
            <span class="nx">contentType</span><span class="o">:</span> <span class="s2">&quot;LAW&quot;</span><span class="p">,</span>
            <span class="nx">sourceId</span><span class="o">:</span> <span class="s2">&quot;DATABASE.LAW3&quot;</span><span class="p">,</span>
            <span class="nx">sourceDateTime</span><span class="o">:</span> <span class="s2">&quot;2014-09-22T00:00&quot;</span><span class="p">,</span>
            <span class="nx">processedDateTime</span><span class="o">:</span> <span class="s2">&quot;2015-06-04T14:36:01.426676&quot;</span><span class="p">,</span>
            <span class="nx">action</span><span class="o">:</span> <span class="s2">&quot;Insert&quot;</span><span class="p">,</span>
            <span class="nx">scope</span><span class="o">:</span> <span class="s2">&quot;Law Document&quot;</span><span class="p">,</span>
            <span class="nx">fields</span><span class="o">:</span> <span class="p">{</span> <span class="p">},</span>
            <span class="nx">fieldCount</span><span class="o">:</span> <span class="mi">0</span>
        <span class="p">},</span>
</pre></div>
</div>
</div>
<div class="section" id="get-law-tree-updates">
<h2>Get law tree updates<a class="headerlink" href="#get-law-tree-updates" title="Permalink to this headline">¶</a></h2>
<p>Gets a list of laws which have had structural changes over a specified date/time range.</p>
<p>To see updates to the content of law documents, see <a class="reference internal" href="#get-law-document-updates">Get law document updates</a>.</p>
<p><strong>Usage</strong></p>
<p>List of laws with tree updates during the given date/time range</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">tree</span><span class="o">/</span><span class="n">updates</span>
<span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">tree</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span><span class="p">{</span><span class="n">fromDateTime</span><span class="p">}</span>
<span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">tree</span><span class="o">/</span><span class="n">updates</span><span class="o">/</span><span class="p">{</span><span class="n">fromDateTime</span><span class="p">}</span><span class="o">/</span><span class="p">{</span><span class="n">toDateTime</span><span class="p">}</span>
</pre></div>
</div>
<p>The fromDateTime and toDateTime should be formatted as the ISO Date Time format.
For example December 10, 2014, 1:30:02 PM should be inputted as 2014-12-10T13:30:02.
The fromDateTime and toDateTime range is exclusive.
If excluded, fromDateTime defaults to Jan 1 1970 and toDateTime defaults to the current datetime</p>
<p><strong>Optional Params</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="12%" />
<col width="25%" />
<col width="63%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Values</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>type</td>
<td>(processed|published)</td>
<td>The type of law update</td>
</tr>
<tr class="row-odd"><td>order</td>
<td>string (asc|desc)</td>
<td>Order the results by update date/time</td>
</tr>
<tr class="row-even"><td>limit</td>
<td>1 - 1000</td>
<td>Number of results to return (high limits take longer)</td>
</tr>
<tr class="row-odd"><td>offset</td>
<td>&gt;= 1</td>
<td>Result number to start from</td>
</tr>
</tbody>
</table>
<p><strong>Response</strong></p>
<p>Get law tree updates by published date</p>
<div class="highlight-default"><div class="highlight"><pre><span></span>e.g. /api/3/laws/tree/updates/2016-10-06/2016-10-08?type=published
</pre></div>
</div>
<div class="highlight-javascript"><div class="highlight"><pre><span></span><span class="p">{</span>
    <span class="nx">success</span><span class="o">:</span> <span class="kc">true</span><span class="p">,</span>
    <span class="nx">message</span><span class="o">:</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
    <span class="nx">responseType</span><span class="o">:</span> <span class="s2">&quot;update-token list&quot;</span><span class="p">,</span>
    <span class="nx">total</span><span class="o">:</span> <span class="mi">23</span><span class="p">,</span>
    <span class="nx">offsetStart</span><span class="o">:</span> <span class="mi">1</span><span class="p">,</span>
    <span class="nx">offsetEnd</span><span class="o">:</span> <span class="mi">23</span><span class="p">,</span>
    <span class="nx">limit</span><span class="o">:</span> <span class="mi">50</span><span class="p">,</span>
    <span class="nx">result</span><span class="o">:</span> <span class="p">{</span>
        <span class="nx">items</span><span class="o">:</span> <span class="p">[</span>
            <span class="p">{</span>
                <span class="nx">id</span><span class="o">:</span> <span class="p">{</span>
                    <span class="nx">lawId</span><span class="o">:</span> <span class="s2">&quot;PAR&quot;</span><span class="p">,</span>                   <span class="c1">// Location id of doc that was updated</span>
                    <span class="nx">activeDate</span><span class="o">:</span> <span class="s2">&quot;2016-10-07&quot;</span>        <span class="c1">// Published date of this doc</span>
                <span class="p">},</span>
                <span class="nx">contentType</span><span class="o">:</span> <span class="s2">&quot;LAW&quot;</span><span class="p">,</span>
                <span class="nx">sourceId</span><span class="o">:</span> <span class="s2">&quot;20161007.UPDATE&quot;</span><span class="p">,</span>
                <span class="nx">sourceDateTime</span><span class="o">:</span> <span class="s2">&quot;2016-10-07T00:00&quot;</span><span class="p">,</span>
                <span class="nx">processedDateTime</span><span class="o">:</span> <span class="s2">&quot;2017-08-15T12:40:02.271155&quot;</span>
            <span class="p">},</span>
            <span class="p">(</span><span class="nx">truncated</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="get-repealed-laws">
<h2>Get repealed laws<a class="headerlink" href="#get-repealed-laws" title="Permalink to this headline">¶</a></h2>
<p>Gets a list of law documents that have been repealed with the option of restricting to a specified date/time range.
The date/time range applies to the processed date of the law document, not the official repeal date.</p>
<p><strong>Usage</strong></p>
<p>List of laws repealed during the given date/time range</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">/</span><span class="n">api</span><span class="o">/</span><span class="mi">3</span><span class="o">/</span><span class="n">laws</span><span class="o">/</span><span class="n">repealed</span>
</pre></div>
</div>
<p><strong>Optional Params</strong></p>
<table border="1" class="docutils">
<colgroup>
<col width="13%" />
<col width="20%" />
<col width="68%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Parameter</th>
<th class="head">Values</th>
<th class="head">Description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>fromDateTime</td>
<td>ISO 8601 datetime</td>
<td>default 1970-01-01 - The inclusive start time of the specified time range</td>
</tr>
<tr class="row-odd"><td>toDateTime</td>
<td>ISO 8601 datetime</td>
<td>default now - The inclusive end time of the specified time period</td>
</tr>
</tbody>
</table>
</div>
</div>


           </div>
           <div class="articleComments">
            
           </div>
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="transcripts_floor.html" class="btn btn-neutral float-right" title="Senate Floor Transcripts API" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="committees.html" class="btn btn-neutral" title="Senate Committee API" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2014, NY State Senate Technology Services.

    </p>
  </div>
  Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    <script type="text/javascript">
        var DOCUMENTATION_OPTIONS = {
            URL_ROOT:'./',
            VERSION:'2.0-alpha',
            COLLAPSE_INDEX:false,
            FILE_SUFFIX:'.html',
            HAS_SOURCE:  true,
            SOURCELINK_SUFFIX: '.txt'
        };
    </script>
      <script type="text/javascript" src="_static/jquery.js"></script>
      <script type="text/javascript" src="_static/underscore.js"></script>
      <script type="text/javascript" src="_static/doctools.js"></script>

  

  
  
    <script type="text/javascript" src="_static/js/theme.js"></script>
  

  
  
  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.StickyNav.enable();
      });
  </script>
   

</body>
</html>